package org.zachary.creditbusiness.commodityandhouse.service;

import org.zachary.creditbusiness.commodityandhouse.entity.CommodityOrder;
import org.zachary.creditbusiness.commodityandhouse.dto.OrderInitResponse;
import org.zachary.creditbusiness.commodityandhouse.util.Result;

public interface CommodityOrderService {
    Result<OrderInitResponse> initOrder(Integer commodityId, Integer userId);
    Result placeOrder(CommodityOrder commodityOrder);
    Result selectByUserId(Integer userId);
    Result selectById(Integer id);
    Result updateOrderStatus(Integer id, Byte status);
}
